
public class ArrayTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		int[] a = {1, 5, 10};

		// Simple array example.
		for (int i = 0; i < a.length; i ++) {
			System.out.print("Simple for: ");
			System.out.println(a[i]);
		}

		// Enhanced loop example.
		for (int j : a) {
			System.out.print("Enhanced for: ");
			System.out.println(j);
		}
	}

}
